Add jshint, fix hinted errors, wrap files in scopes via IIFEs