changed setAttribute instead of Mootools set