postutil.js - formatting and documentation