change order of require
moved raty to application.js