Fix memory leaks

There are several jQuery objects that aren't released on destroy, and I've noticed it causes some pretty large memory leaks that grow as the number of rows does.