Changes Javascript architecture to use rails scprockets instead of requirejs