Create Array With Key Value Javascript Substring Until Character