Added javascript qunit tests