test sample on js