init code refactorization - global var

hrm, I think we just declared branch at the top of this file. also there's a typo here - `,` instead of `.`.

try running `gulp hint` to point out these sorts of errors