Change parseSnippet to return the first child in snippet