New article js function for save as draft/publish etc