commiting changes to engine.js