translate git raw objects into javascript objects