The use of the eval() can be slow and insecure, so maybe it's better to avoid and replace it. More info on: www.nczonline.net/blog/2013/06/25/eval-isnt-evil-just-misunderstood Now I need to add 'unsafe-eval' to my Content-Security-Policy to make it work