Document ready thingy

To make it works in <head>.