Update to make compatible with component.js

Only tested in Chrome, but I did try to bring in the IE8 thing from
TJ's debug lib.