fix 30+ jslint errors