Type casting the driver object with JavascriptExecutor

Updated the doc for type casting the driver object with JavascriptExecutor.