Remove dependency on r.js (do our own parsing)