Tower Defense Javascript