changes to fb.js