remove json and move to api for typeahead

move phots typeahead to new version