fileutil.js - file type/subtype support