Tower Defense js game engine