added karma unit test and angular
Merge pull request #2 from gonzalovazquez/f1

added karma unit test and angular