Fixing the dashboard jslint issues