fixed ripples.js on old versions of browsers which not support element.matches