use javascript close() rather than clicking native buttons for safari
title() should always execute in default context for webviews