Create New Array From Existing Javascript Substring Method