Improved example. Working in IE8+.