Making applet work