remove eval and use dynamic class name and attribute name