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