fixed facebook isReady function