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