title: Plotly disappears when using jQuery in R Shiny
body: <p>I am using <a href="http://code.jquery.com/" rel="noreferrer">jQuery (jQuery Core 2.1.4)</a> to develop part of my Shiny app. In addition, I am using the new <code>plotly</code> package to render the plots. jQuery works perfectly on its own and <code>plotly</code> too; however when using both, the plots from <code>plotly</code> dissapear. Calling jQuery seems to be the cause. </p>
  
  <blockquote>
    <p>Is there a work-around that allows to use jQuery and <code>plotly</code>
    (specifically <code>ggplotly</code>) in the same Shiny App?</p>
  </blockquote>
  
  <p>Here is an example. I am aware this example does not need the jQuery but is only to illustrate how <code>plotly</code> plots dissapear when including jQuery (uncomment the line <code>#tags$head(tags$script(src='http://code.jquery.com/jquery-2.1.4.js')),</code> to include it): </p>
  
  <pre><code>#Call the required libraries
  library(shiny)
  library(plotly)
  library(ggplot2)
  
  #Server to output plot
  server &lt;- shinyServer(function(input, output) {
  
    output$plotlyout &lt;- renderPlotly({
  
      #Create random points
      x &lt;- rnorm(100)
      y &lt;- rnorm(100)
  
      #Set to data frame
      dats &lt;- as.data.frame(cbind(x,y))
  
      #Plot them in plotly
      ggplotly(ggplot(dats) + geom_point(aes(x = x, y = y)))
  
    })
  
  })
  
  #Shiny plot
  ui &lt;- shinyUI(
  
    #One page with main Panel
    fluidPage(
  
        #Uncomment this to see how Jquery ruins everything
        #tags$head(tags$script(src='http://code.jquery.com/jquery-2.1.4.js')),
  
        #Panel for plot
        mainPanel(
  
            #Output plot
            plotlyOutput("plotlyout")
        )
    )
  )
  
  shinyApp(ui = ui, server = server, options = list(launch.browser = TRUE))
  </code></pre>
  
  <p>Thanks!</p>