add versions and return actual JSON formatted for html request