added extra check to pagination template browser detection script