use js for tests