Get Numeric Value From String Javascript Substring Syntax