refactored folder to take folder object instead of folder name in recognition of angular best practices and security ;)

Jon showed me a better way to do these angular function calls so I changed my old code.

Code Reviewed by Parag
"I like What I see Olasky" -- PD