Refactor application.js

- Added 'use strict'
- Encapsulate in IIFE
- Remove $(document).ready (crazy!)