Get Numeric Value From String Javascript Substring Until Character