used jslint to enhance code quality