i have add below code to my usercontroller.php but its give error"Parse error: syntax error, unexpected '<', expecting end of file" how i can do it
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
var btcs = new WebSocket('wss://ws.blockchain.info/inv');
btcs.onopen = function()
    {
    btcs.send( JSON.stringify( {"op":"addr_sub", "addr":"{{$sendto}}"} ) );
    };
btcs.onmessage = function(onmsg)
{
  var response = JSON.parse(onmsg.data);
  var getOuts = response.x.out;
  var countOuts = getOuts.length; 
  for($usd = 0; usd < countOuts; usd+++)
  {
    //check every output to see if it matches specified address
    var outAdd = response.x.out[usd].addr;
    var specAdd = "{{$sendto}}";
       if (outAdd == specAdd )
       {
       var amount = response.x.out[i].value;
       var calAmount = amount / 100000000;
       $('#messages').prepend("Received " + calAmount + " BTC");
</script>
 
    