Use Function constructor instead of eval

`eval` can affect the variables in the scope and it makes performance worse.
Instead of it, using Function constructor is better.