Server Side scripting sample using Rhino js