Finished cleanup of Javascript var globals.