You're looking for the eval() method:
http://www.w3schools.com/jsref/jsref_eval.asp
Currently this isn't implemented yet but someone might make a quick plugin for it. You should be wary using it if you're planning on submitting your games to certain arcades/other websites as many will for good reason disallow functions such as this for security reasons.