Evalulate javascript like the built-in javascript eval() method but safely.