Update bpmEngine.js