It dates back to 1777 and an English explorer , Captain James Cook , went to a place he named `` the Friendly Islands '' ( now Tonga ) . The use of taboo in English dates back to 1777 when English explorer , Captain James Cook , visited Tonga .