Pipe symbol in javascript

I created a simple javascript method and I am trying to use a pipe symbol in a string but the resulting string adds a backslash before the pipe symbol.  How do I prevent the backslash symbol?
Code - Filter.state = { filterValue: "Released|Sample", isFilterFixed: true };
Result - Released\|Sample