Add javascript QUnit tests
transchoice implementation