code style fixes (mostly removed leading spaces)
added a comment about the need to keep another workaround for IE9 (ticket #13553)
a few spaces removed
removed isLocal