allow hash.register to be called after window.load