Updated lead retrieval script

Changed the way that the file was returning lead data to be more inline
with angular best practices