break fb.js into two files