Javascript example

I am just getting started with this and am wondering if the Javascript example you have on the website works? I’ve tried it and the browser keeps popping up the login box, which I can’t have in my web app. Looking through all the documentation and discussions it appears that it is not possible to work in the browser if you don’t want the login box to pop up.
Is that correct?