Deleted reset() in engine.js which was causing an error