quick attribute.js fix