Removed requirejs code and implemented custom js modules to use with asset pipeline.