adding javascript for open/close of categories