Do some linting, formatting etc.
Merge pull request #114 from hfaran/hfaran

Do some JS linting, formatting etc.