The source code & a walkthrough are at coffee_maker_js on Github. There's a related, prior, project, coffee_maker_ada.
This is like coffee_maker_0.php except that output is delayed in the hopes of being easier to read & maybe somewhat resembling the delay of a microcomputer running an Infocom game circa 1980.
That previous game, coffee_maker_0.php, is an experiment to see what it's like to write a parser game (a.k.a. text adventure) in JavaScript by hand so other people could play it on their browsers without installing anything.