Fix circular dependency for application.js and recompile assets