Get Value From String Javascript Substring Indexof