JavaScript: prop & attr.js