Learning from jquery cookbook