[BUG #6329] Listen for native DOMContentLoaded event in IE9+
[BUG #5980] Check for null values returned by environment queries
minor fix: prevent XML syntax error in IE's dev console
manual updates/tweaks