Fix global vars in Jasmine spec