simple tower defense using javascript