Return result of executing JavaScript

Modify return type