Add resources.js and engine housekeeping.