generally learning JavaScript testing