Getting Object Keys Javascript Substring Indexof