fix escape symbols in js, Rails 3.2.11