using elem.className for the sandbox when class property intended