Get Numeric Value From String Javascript W3schools Promises