more js fixes for fb