Add javascript support for tab and collapse