Made data append to the dom on pagebeforeshpow