Fix jslint issues with previous version