Javascript cleanups.