Fix minor mistake in dashboard.js view() function