refactor for requirejs-rails success!