Fixing unclosed curly bracket in engine.js