Adding evaluateScript function to selenium driver