Update fb.js

Modifications referred in issue #25.