for javascript plugin share