jslint code quality improvements