Use JSON.parse instead of eval() when possible.

JSON.parse is available in all major browsers since IE8 (which is near-dead already): http://caniuse.com/json

It's much better than an eval, it's more secure and it works nicely under CSP restrictions (if unsafe-eval isn't allowed).

This is the first little step for working with disabled unsafe-eval.

Also, all instances of «new Function(» should be removed, but this commit is just about JSON.parse.