reponse potrebbe essere un array... se è cosi devi fare una cosa del genere...

<script type="text/javascript">
alert("<?php echo $reponse['campo1'] ?>");
</script>