publish button js