Interaction between jQuery .ready() and