replaced eval with JSON.parse