Added some simple unit test with QUnit, need further development.