big bang refactor - all jasmine, scrub globals, mockScope