Added jQuery plugin functionality