Refactored escape_javascript to j withing the index.js.erb file