Update javascript/main.js

setting up storeData function to be called later