Javascript testing example