#749 - make addFiles API method easier to use cross-browser