fixed DOMContentLoaded propagation that was messing up online but not locally