Cleaning up the JavaScriptObject (formerly called $, now called JSObject)