Done with Reference Price and refactoring Angularjs