fixed ripples.js on old browsers