Jira Rest Api Authentication Javascript