encode slug in facebook share javascript