Test for a Simple Javascript Ball Game