Simple function that provides the ability to safely 'eval' javascript code without access to the global context