change homepage file/doc creation to use object and wrap object in angular controller to send object