Bug 937040 - Revise fb_contact.js and fb_utils.js to adapt to WebIDL changes

Didn't want to complicate things so I included a helper function per library instead of creating a centralized helper function and lazy loading it when needed.

I tried to test all the possible paths to check that everything works as expected.