Move less common javascript into app.js as they will only marginally affect the size.