Phalanx: cleanup of JS unit tests