Weren't we going to do this for all JS files, not just the `rest.js` files? Somehow I missed this in the last review, but we should be able to define models in other files than the rest.js files.