Filepicker and emailing works when deploying non-monified