init code refactorization - global var

we need to load branch.min.js, then bnc.lt/_r, then do branch.init