title: Wordpress add <p> tags to my javascript
body: <p>I use philantrophy theme, in which I added sliders via shortcodes in a page then it automatically inserted p tags inside my javascript.</p>
  
  <p>below code shows p tag added in my javascript code:</p>
  
  <pre><code>&lt;script&gt;
  jQuery(function($) {
      jQuery('.main-slider, .page-header').prepend('&lt;img src="http://localhost/projects/new_site/wp-content/uploads/2015/07/sketch.png" alt="" id="testimage" class="hidden"&gt;');
  });&lt;/p&gt;
  &lt;p&gt;    jQuery(document).ready(function($) {&lt;/p&gt;
  &lt;p&gt;        jQuery('.main-carousel').prepend('&lt;img src="http://localhost/projects/new_site/wp-content/uploads/2015/07/sketch.png" alt="" class="testimage hidden"&gt;');&lt;/p&gt;
  &lt;p&gt;        jQuery('.testimage').load(function(){
          jQuery(".slider-full .spinner, .slider-full .testimage").remove();
          jQuery(".main-carousel").removeClass('invisible').addClass('animated fadeIn');
      });&lt;/p&gt;
  &lt;p&gt;        var slider = jQuery('#myCarousel'),
                          animateClass;&lt;/p&gt;
  &lt;p&gt;        //Brogressbar Slider
          var percent = 0, bar = jQuery('.brogressbar'), interval = 2;&lt;/p&gt;
  &lt;p&gt;        function progressBarCarousel() {
                  bar.css({width:percent+'%'});
                  bar.css('transition', '0.2s');
                  percent = percent +1;&lt;/p&gt;
  &lt;p&gt;        }
          var barInterval = setInterval(progressBarCarousel, interval/105);
          slider.carousel({
                  interval: interval,
                  pause: false
          }).on('slide.bs.carousel', function () {
                              percent=0;
                              bar.css('transition', '0s')
                      });&lt;/p&gt;
  &lt;p&gt;        slider.find('[data-animate-in]').addClass('animated');&lt;/p&gt;
  &lt;p&gt;        function animateSlide() {
                  slider.find('.item').removeClass('current');&lt;/p&gt;
  &lt;p&gt;                slider.find('.active').addClass('current').find('[data-animate-in]').each(function () {
                          var $this = jQuery(this);
                          animateClass = $this.data('animate-in');
                          $this.addClass(animateClass);
                  });&lt;/p&gt;
  &lt;p&gt;                slider.find('.active').find('[data-animate-out]').each(function () {
                          var $this = jQuery(this);
                          animateClass = $this.data('animate-out');
                          $this.removeClass(animateClass);
                  });
          }
          function animateSlideEnd() {
              slider.find('.active [data-animate-in], .carousel-indicators, .carousel-control').each(function () {
                      var $this = jQuery(this);
                      animateClass = $this.data('animate-in');
                      $this.removeClass(animateClass);
              });
              slider.find('.active [data-animate-in], .carousel-indicators, .carousel-control').each(function () {
                      var $this = jQuery(this);
                      animateClass = $this.data('animate-out');
                      $this.addClass(animateClass);
              });
          }&lt;/p&gt;
  &lt;p&gt;        slider.find('.invisible').removeClass('invisible');
          animateSlide();&lt;/p&gt;
  &lt;p&gt;        slider.on('slid.bs.carousel', function () {
                  animateSlide();
          });
          slider.on('slide.bs.carousel', function () {
                  animateSlideEnd();
          });&lt;/p&gt;
  &lt;p&gt;        if (Modernizr.touch) {
              slider.find('.carousel-inner').swipe( {
                      swipeLeft: function() {
                          jQuery(this).parent().carousel('prev');
                      },
                      swipeRight: function() {
                          jQuery(this).parent().carousel('next');
                      },
                      threshold: 30
              });
          }
      });&lt;/p&gt;
  &lt;p&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I also tried </p>
  
  <pre><code>remove_filter( 'the_content', 'wpautop' );
  remove_filter( 'the_excerpt', 'wpautop' );
  </code></pre>
  
  <p>inside theme's function.php
  Please help me out to get rid of this. thanks in advance.</p>