Creation of store.js type definition and test files
Finish code and tests.