If you haven't solved this yet, you might want to take a look over here Windows Script Host 5.6 reference and over here StdRegProv jscript and vb example The last link contains all the examples for executing and retreiving out values from methods.
I created a javascript game once that had a few of these functions you require. Leave a message if you want to take a look at the source, but remember is Jscript, not Java.
You could try: <html> <head> </head> <body> <div style="width: 200px; height: 200px; oveflow: auto;"> Dont forget to set width and height! </div> </body> </html>