calc applet -> javascript replaced in html