postutil.js - fix location variable