Tweaking the dashboard tasks javascript