Java Rhino javascript dependencies resolver