Try to make this work with r.js