Return jQuery object for chaining

Made a few adjustments to allow jQuery methods to be chained off the
plugin function