Javascript parsing-Rhino (Calling functions)