best practices on code style (google)

Check with http://www.jslint.com/

Using atom.io with https://atom.io/packages/linter-jscs