Node.js read and write post status to a JSON file