Committing distributed js