Javascript function that passes the argument string to the interpreter, which then evaluates it.
Until you are reasonably expert at Javascript, avoid the use of eval(). See here