To clear the Java cache, open the Java control panel, which you can find in the Windows Control Panel or in System Preferences on a Mac.
You can enable JavaScript in your iPhone's Settings app to improve website appearance in your Safari browser.