A Javascript testing example