THE answer to Marsh-Man's toaster code challenge. Implemented in JS.