basic splitout of JS refactoring works. need to work on separate update functions for path and ellipses