Slight refactoring of the on_branch function.
Slight refactoring of the on_branch function.

cristianberneanu/erlang_js,zero778/erlang_js,sameroom/erlang_js,basho/erlang_js,systra/erlang_js,zero778/erlang_js,basho/erlang_js,sameroom/erlang_js,basho/erlang_js,systra/erlang_js,sameroom/erlang_js,cristianberneanu/erlang_js,zero778/erlang_js