enhancements after jslint