Clean up some sources of memory leaks

Apparently jQuery automatically adds a prevObject reference
to new jQuery objects which makes cleaning up the new object
somewhat challenging. Manually cleaning that up creates a lot
less garbage which gets cleaned up faster.

Before this change I was seeing gc pauses of > 16.67ms which
was making my animation janky.