jslint and syntatic cleanup