fix missing semicolon + some jshint warnings