I may like this background color better
Makes the javascript math functional. Fixes all the calculations to work correctly. Uses objects that make more intuitive sense.