Update engine.js

Modification