<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def eval_script(self, expr):
 """ Evaluates a piece of Javascript in the context of the current page and returns its value. """

    ret = self.conn.issue_command("Evaluate", expr)
    return json.loads("[%s]" % ret)[0]