bugfix - race condition

Sometimes the load event fired when the page was already executing and
the brackets object got attached too late.