fixed FB synchrony problems with javascript