Create locales.js.erb - Now the locales are accessible to JS

Some JS files (like bookmark_toggle.js) have locales strings inside them, this causes 2 problems:
1) Changing to another language won't work for the locales in JS files.
2) Some of the locales strings are scattered around the JS.


Now the locales are accessible from Javascript.