Avoid potential memory leak resulting from a page not calling htmlReady()


Timeout is set to ten seconds.

If page.close() is not called, the PhantomJS process will leak memory. This forces the callback to be invoked after 10 seconds to cover the cases where a script error or a bug in your app results in htmlReady() not being called.