new application.js

With Jakob's changes from email.