Overall refactoring to drop IE6 and IE7 support.