locationutil.js - add fmt() and validate()