Thank you (both) for pointing out that I was wrong. I'll look at the javascript API again and see what can be done.