Try waiting for DOM ready.