Create string to JS DataObject