Added qunit, and some basic tests, fixed lint issues