clean up global namespace in browser environment