Cleaning up JS globals.