Add unit-test for new repo.branch method.
Add es5 comment to bypass jslint keyword check.