diff --git a/ebv_metadata_app.R b/ebv_metadata_app.R
index 224d49a41260c34fcd49bb39067a6636b09158d2..313876f30fa88da8e773fa5cfaf1553efec5f1d5 100644
--- a/ebv_metadata_app.R
+++ b/ebv_metadata_app.R
@@ -607,8 +607,8 @@ server <- function(input, output) {
           output$value <- renderPrint({'Outputpath must be of type character.'})
         } else if(checkmate::checkDirectoryExists(dirname(input$outputpath)) != TRUE){
           output$value <- renderPrint({paste0('Output directory does not exist.\n', dirname(input$outputpath))})
-        } else if(!endsWith(input$outputpath, '.js')){
-          output$value <- renderPrint({'Outputpath needs to end with *.js'})
+        } else if(!endsWith(input$outputpath, '.json')){
+          output$value <- renderPrint({'Outputpath needs to end with *.json'})
         } else {
 
           #check title