fixing bug introduced in last commit that broken openfb when running in cordova