XMLHttpRequest works, throwing up other "cannot read property" errors.