Mweb 853

@nandy-andy @RafLeszczynski @rogatty This should be enough to use document.referrer instead of a timeout (along with the changes to the app repo)
missing function description