Added save and load to JavaScript API
Merge pull request #10 from sebeaumont/master

Added save and load to JavaScript API