little turnaround for running this test-like script in node