policies.js upgraded