Mechanism to use Rails translations in JavaScript

Conflicts:
	app/assets/javascripts/application.js
Fix lint errors