Add parser

Add function based on regex that parses qtree string into JS object.