load agencies data in script tag rather than ajax