Changed initializer to the customevent on domcontentloaded

I suspect it will be very rare, and very easy to work around with nested markup, so not worth worrying about, but I think Rhys is right that ~= would be a better practice to get into generally for this.