added js tests