write a jquery plugin instance