added hiddenClass option to keep the plugin from looping through elements that are hidden from the page