mocha updated
check if running test suite before creating global variables.
make mocha play nicely with jQuery.