Place onSearchItemClick and featuresToList functions in initmap plus delete all console.log...
Delete  trailing spaces