make a change to the main.js getElementById for .attr.