This demo shows most of the functions of the JavaSCript API. As you can see - all the features of the PHP API can be implemented using Javascript and manipulated at runtime.
AJAX API