Simple JS implentation of Git