Automatic fabric inspection using GLCM-based Jensen-Shannon divergence