Parse output of `git show-branch` command into JS object