Changes required to get applet working when deployed to a website