don't use eval in this way; the minifier may rename the elem variable but won't know to change the string