JavaServer Faces in JavaScript