Adds a sample for the QWebElement using html and cleans up the code