reading JasmineJS source to understand innner workings