Update ValEngine.js