Minor restructure to simulateOne to make unit testable.
Include AngularJs into the project