Phalanx: add JS unit tests
Phalanx: JS unit tests completed