Improved behavior of rich notifications webview with complex javascript