use a temporary directory for js tests