Add qunit test support and js unit test for page editor