QT extension functions to call from a QWebView (similar to phonegap)