add js tests