Fixing dashboard jslint problems