Liberally detect JS unit tests