Headless Authentication and CRUD with JavaScript and WordPress REST API