added syncData to search.js