using the same RequireJS trick as in cannon.js