SERVER-8104: clean up js global object