I coded this as a small learning exercise for myself, not attempting to make any shortening to the code since Im still fairly new to javascript. I know alot of places I could of optimised (Especially the stupid array method I used to create ball objects - imo should of just made a class or somthing liek it if javascript has that?)