Below is a program that, when a JavaScript file is uploaded that contains multiple class definitions in a specific format, splits each of the classes defined in that single file into its own file, and then initiates the download of all those files to the user's filesystem. It is intended as a convenience for myself, the author, and is by no means universally applicable to arbitrary JavaScript files.