changes to allow r.js usage