only hide categories if javascript enabled