refactor into one file

turns out JS loads different resources asynchronously, so I'll just put
everything in one file to make things easier
ball object

created ball object
created render method