address the Javescript error in shinyApp