moved script from home to application.html