(chore) Add JSHint via mocha and clean up code.  Closes #31