The *DEBUG* flag is unnecessary, because logging of messages the Simulator dumps is controlled at runtime by the log level preferences. So this should simply dump unconditionally.

Also, automatic prefixes like the one in DEBUG_PREFIX tend to get expensive in terms of the amount of space they take up in the log and the amount of time it takes to read them. And they usually don't help identify the source of a log message very much, since the message is generally unique enough to be identifiable on its own (or with a simple code search).

In this case the only message being logged is "loading component definition", which is one of the rare messages that is actually ambiguous. But it's easy to fix that by changing the message to "loading SimulatorBar", and that's much shorter and easier to read than "prosthesis: SimulatorBar.js - loading component definition."

So I would remove *DEBUG_PREFIX* in favor of short, sweet, and recognizable log messages.