Apply some minor corrections to app.js

jshint informed about several issues with app.js:

* Use of '!=' comparator instead of '!==' when working with null/undefined
* Some semicolons were missing

Trailing spaces have been removed as well.