This is very easy to answer with a Google search:
https://support.microsoft.com/en-us/kb/3135465
JavaScript is usually used online (not offline), and is completely unrelated to Java. As I'm sure you realize, IE7 and Windows XP are both very old and have been unsupported for years.
Bill