making progress with JS testing