Fix evaluation failed

Such as `{}` couldn't be evaluated:
Support CoffeeScript
Wrap script with function

A script beginning with `var` couldn't be evaluated.