EvalJS lets you run JavaScript code from your iOS app. (Warning: Experimental!)