JS unit-test && small functional test