added js test scenario in lib. And fixed screenShot taker for iOs 8