ajax.post rough implementation