Fix page capturing problem...

…with the inevitable terrible setTimeout() hack