eval() call caused errors on non-Chrome browsers