node utility to save moves json