Update application.js

Addresses some of issue #87