Resolve jsHint errors and fix formatting to project standard.
Merge pull request #147 from Balrog30/gh-pages

Resolve jsHint errors and fix formatting to project standard.