Fix missing () after new, add missing semicolons, cache xhr.status var and treat as integer w triple equal