update applet js