Javascript tool for vocabulary learning