Make the debug buttons work if the code is called after
DOMContentLoaded.
Merge pull request #246 from bstell/master

Make the debug buttons work if the code is called after