Added icon classname options
Replaced .attr with .prop

fixes some issues with newer jquery versions