Core class tools and object pooling for high-performance gaming in Javascript