Fix problem with require order in application.js