less logging
use .getAttribute instead of jquery .attr