best practice javascript

* Mixed double and single quotes -> http://jslinterrors.com/mixed-double-and-single-quotes
* User '===' to compare with '0' -> https://github.com/jshint/jshint/issues/1366
* Better written in dot notation -> http://jslinterrors.com/a-is-better-written-in-dot-notation