The engine was rewritten for performance (in C++?), but the designer is fluent enough in Phaser/JavaScript that they continue using the original engine for testing new features.