Hackbright Javascript DOM manipulation