Fixing jslint errors