fixes and jslint