Update fb.js

Adding a check for begin button