jQuery script to retrieve all the distinct class names from an html template.