Fixed a javascript error in agency.js