adding real unit tests, travis-ci support, example folder and fixing the jQuery bug