Hello Sateswar, and thank you for your question.
I have removed your code from this public place since it was your raw PHP code, it could potentially expose secure data only meant to be viewed on the server-side.
Unfortunately just reading a large block of code like this isn't very efficient for trying to find a problem like this. I'd recommend using the steps in our guide on how to diagnose JavaScript errors on my site so that you can use a JavaScript debugger in your web-browser to see what's going on.
If you're still having issues, if you can provide us with the URL that this is happening at we can take a further look for you. If you would like to not share that to the public, please send it in an email to [email protected].
Please let us know if you have any further questions.
- Jacob