added categoricalMethod in rhino javascript engine