fix attrs for id and class in tag.js