Update myengine.js