File synchronisation with node.js