Simplified check for XMLHttpRequest (saving a few bytes) and fixed load()-test