WIKI-125 Fix the js to adapt with gatein 3.5.0