Add jshint to a test suite
Refactored to support tests and comply with jshint suggestions
Follow jshint suggestions
Basic set of regression tests, closes #14