changed main.js to main.js.erb to be able to access environment variables