adding in ability to pass in document
Merge pull request #1 from yo-johnnyd-hc/angularjs-document

adding in ability to pass in document