diff --git a/index.html b/index.html
index f4365391..a93d2726 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,6 @@
+
Bootstrap Material
diff --git a/scripts/material.js b/scripts/material.js
index 9b4f7b53..1f1c3758 100644
--- a/scripts/material.js
+++ b/scripts/material.js
@@ -2,7 +2,7 @@
$(function (){
- if (ripples) {
+ if (typeof ripples == "object") {
ripples.init(".btn:not(.btn-link), .navbar a:not(.withoutripple), .nav-tabs a:not(.withoutripple), .withripple");
}
diff --git a/template/material/scripts/material.js b/template/material/scripts/material.js
index 9b4f7b53..1f1c3758 100644
--- a/template/material/scripts/material.js
+++ b/template/material/scripts/material.js
@@ -2,7 +2,7 @@
$(function (){
- if (ripples) {
+ if (typeof ripples == "object") {
ripples.init(".btn:not(.btn-link), .navbar a:not(.withoutripple), .nav-tabs a:not(.withoutripple), .withripple");
}