add jasmine test from main page

http://jasmine.github.io/2.0/src/introduction.js
update dependency version
support asynchronous tests in browser mode
enable asynchronous function tests in non browser environment