Some facebook javascript fixes