simple javascript flash card type program