js function to list accepted file formats. not currently used, but thought it worth saving