Refactor to use constructor pattern.
Split up code into multiple files. Use module pattern.
Enable slider control of animation fps.