enable saving screenshot of whole webpage
fixed indexOf statement