proxy design pattern  jquery plugin