made client side js restful and updated document to reflect this

the server side js will have to be updated to mesh; I don't want to
change Pat's code before he has a chance to