Clean up global namespace by throwing everything into window.Wrong
Clean up global namespace
No need to set fileDirty here. Isn't set in desktop version.