How to evaluate javascript scripts using Rhino javascript engine