Get Digits From String Javascript Substring