Added `store` public-facing method.
Initial work on the release version in javascript.