Replaced eval with window[]