Loans project with angular js