fixed some js, fixed fb functions