misc improvements
switching to jslint