start using actual json output from search in js