Wordle(...ish) in 10 lines of JS

...a minimal riff on the just HTML & CSS version .