Add jshint, "use strict"

Adds JSHint and "use strict" everywhere (apart from the tests)