adds new algo on home.js refresh event, adds $setPristine to clear form inputs
Merge pull request #55 from scottjason/refactor-refresh-algo-v2

adds new algo on home.js refresh and init event, adds $setPristine to clear form inputs