title: jQuery Mobile showing doubled button
body: <p>I'm trying my first app with jQM+PhoneGap.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;!--
         Licensed to the Apache Software Foundation (ASF) under one
         or more contributor license agreements.  See the NOTICE file
         distributed with this work for additional information
         regarding copyright ownership.  The ASF licenses this file
         to you under the Apache License, Version 2.0 (the
         "License"); you may not use this file except in compliance
         with the License.  You may obtain a copy of the License at
  
           http://www.apache.org/licenses/LICENSE-2.0
  
         Unless required by applicable law or agreed to in writing,
         software distributed under the License is distributed on an
         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
         KIND, either express or implied.  See the License for the
         specific language governing permissions and limitations
         under the License.
  --&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
      &lt;meta name="format-detection" content="telephone=yes" /&gt;
      &lt;meta id="viewport" name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/index.css" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.1.min.css" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/jquery.mobile.structure-1.3.1.min.css" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/jquery.mobile.theme-1.3.1.min.css" /&gt;
      &lt;script type="text/javascript" src="js/jquery-2.0.0.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery.mobile-1.3.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="cordova-2.7.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/index.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
        app.initialize();
      &lt;/script&gt;
      &lt;title&gt;Hello World&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="app" data-role="page"&gt;
  
        &lt;div data-role="content"&gt;
          &lt;a onClick="$(this).toggleClass('toggleOffButton');" data-role="button" class="toggleOnButton" id='toggleButton' data-corners="true" data-mini="false" data-theme="a" tabIndex="2"/&gt;
        &lt;/div&gt;
        &lt;!-- /content --&gt;
  
        &lt;div data-role="footer"&gt;
          Footer
        &lt;/div&gt;
  
      &lt;/div&gt;
      &lt;!-- /page --&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>As you can see it is a really simple page.</p>
  
  <p>The problem is that it outputs a double button instead of just one and it's driving me mad.</p>
  
  <p>Replacing the </p>
  
  <pre><code>&lt;a onClick="$(this).toggleClass('toggleOffButton');" data-role="button" class="toggleOnButton" id='toggleButton' data-corners="true" data-mini="false" data-theme="a" tabIndex="2"/&gt;
  </code></pre>
  
  <p>with a string makes it print the string just one time as intended but the button is repeated twice.</p>
  
  <p>Any ideas on what can be the problem?</p>
  
  <p>I was reading something about including twice jQM scripts but, as you can see in the code, they're not double referenced!</p>