I would try uninstalling and reinstalling Firefox.I would try uninstalling and reinstalling Java.
http://www.java.com/en/download/windows_xpi.jsp?locale=en
He said he's trying to fix javascript. Firefox has its own javascript interpreter. They use
SpiderMonkey. It's part of the browser.
Java apps are a different thing.