init code refactorization - global var

Yeah i'm a bit confused as to how we get around this, this only way Branch has access to oldBranch in branch.js is if oldBranch is a global right, so that defeats the purpose