Fifth Attempt
As you see, even if yepnope seems to use some unorthodox method, we get exactly what we were looking for: ordered execution. And the error is definitely gone !
Now, let’s get rid of the noise. I’m only interested in browsing the thesaurus, so all other stuff around it is just noise to me.
My fifth attempt (open in jsFiddle):
{[ .disco-attempt5 | 1.hilite(=javascript=) ]}
produced this result:
No errors in the console. No useless decoration. All done. You can even expand children and it just work!
Oops, no. Too soon.
Well, all of the above is true and should work not only in jsFiddle but also in any other Online JavaScript IDE [1]. But if you have Google Chrome, forget about all those tricks and use its Custom JavaScript Snippets [2] feature instead. It just works. It’s like having the power you get when developing extensions right from the console.
1: http://en.wikipedia.org/wiki/Online_JavaScript_IDE
2: https://developer.chrome.com/devtools/docs/authoring-development-workflow#snippets