Update application.js

Removed previewmode from application.js