add attr to class.js