add init to doc ready