How to write jQuery plugin? by alfred sang