className support for IE < 8 in Bar.js

The className must not set thru the setAttribute on IE < 8. Else the css associated with this class is not properly applied to the node.
See also: http://stackoverflow.com/questions/5406301/ie7-how-to-set-the-class-attribute-for-a-dynamically-created-element-in-javas