changed store js file to start trying the server side code