[JS] Update headers for cordova scenarios