simple jquery wiget factory snippet