JavaScript - Java Applet IO class