Java library to dynamically create HTML and JavaScript content