Wrap in jquery doc ready.