High performance JavaScript entity system engine