Added JSObject stuff to applet