The File tab has options for opening and saving files as well as default templates.
You can use the Save or Save As option to save to a JavaScript (.js) file. This file type can only be loaded with the fromJSON method.