Added jasmine example, added wrapper function around the mock

This is about #3 I included an example of my problem for reference.