solving syntax warning in engine.js