added facetselect JavaScript code