added jquery wait for DOM load