Regex Extract Number From String Javascript Methods