changed indexOf function in breadcrum directive/headerCtrl