Add a ready() callback for Require.js loading