Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I commented above, but a great solution to this is using some form of localStorage with a timer-fired event that saves the current kata's source. Then, if this happens (as it's happened to me a million times!), navigating back to the page should restore the source from the localStorage.