Web communication

I want to know if there is a way to avoid using jslib to communicate with the web page, jslib is too unfriendly to debugging. . .
And as far as I know, Application.ExternalCall has been deprecated