Fixing jslint complaints