Added compatibility with IE 7 and 8: class is now 'class', .bind() polyfill added. First example changed to show that 'class' should be in quotes.