finished converting necessary applet html to jquery