Find All Substring In String Javascript Functions