load rhino compatibility functions on Java 8

In Java 8 to be able to import Java Packages and Classes we need to load the mozilla_compat.js script.