Update openfb.js

Fixed check for cordova