remove semis, consistency; error handler for XDomainRequest