Added save as functionality to UI

Should be `window.prompt(title, defaultName);` and rename the `x` argument above to `defaultName`