Added function to retrieved data put in the search field.
Modified javascript storeData function