Formatted application code to follow JSLint