changed engine.js and updated dependencies