Moved setTimeout to post from page