diff --git a/docs/javascript.html b/docs/javascript.html
index a530b21e0d9cc5d51fb964297692a37272742372..91620a5723729adf238542a3c4d9ca1e7bb7c024 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -253,7 +253,7 @@ $('#myModal').on('show', function (e) {
 <a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
 
 <-- Modal -->
-<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-header">
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
     <h3 id="myModalLabel">Modal header</h3>
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 5f8883bdf7a598a612552e4f8451fb549649df02..3c412a982ba1c6fdf2ee0ec39e3b480de5f1fab9 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -183,7 +183,7 @@ $('#myModal').on('show', function (e) {
 <a href="#myModal" role="button" class="btn" data-toggle="modal">{{_i}}Launch demo modal{{/i}}</a>
 
 <-- Modal -->
-<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
+<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-header">
     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
     <h3 id="myModalLabel">Modal header</h3>