Jslint and assocaited cleanup