added json data in store.js, addes functions in data.js