Fix errors thanks to jslint
+ tests
Use chai-jquery
Cleanup after each test