thanks again Asifnoor,

I've added alerts in the client script, so I now my "queueNumber" variable is getting the correct value.  

Regarding the <script> tag...is there a better way to do it?