quick and dirty code review with minor changes

I agree. I hated doing this. I just took a quick tutorial on angularjs. I will implement and refactor.