jslint fix and misc