Clean up some JS.