update engine.js
update script.js