updated dashboard javascript to leverage require.js