Update fb.js

Modifications referred to issue #25.