add script in index.xhtml