removed logging, fixed missing semicolons etc.
changes for IE compatibility mode, part 1
changes for IE compatibility mode, part 2
changes for IE compatibility mode, part 3
changes for IE compatibility mode, part 4
changes for IE compatibility mode, part 5