Some magic with dashboard.js