Stop counter.js from erroring when jquery without template function is given