A Jquery plugin with multiple functions