Fixing jslint issues