Added cookies support to getHtml. Some sites cause infinite redirect loops without it.