Gotcha, I think as a short term solution you could probably get away with leaving it as a javascript resource _and_ using the requires in the way I describe. If you wouldn't mind sharing your project with me that'd be great - if you prefer not to have it publicly accessible you can just email it to us too.