Could to translate JQuery code to JavaScript. And is there any working converter jq to js and vice verse? [duplicate]

//JQuery
$(“#toggle-btn”).click(function () {
$(“#sidebar”).toggleClass(“active”); //add class just to change the sidebar position
$(“#toggle-btn”).toggleClass(“activeBtn”);
return false; // prevent to pass click event to body
});

$("body").click(function () {
  if ($("#sidebar").is(".active")) {
    $("#sidebar").toggleClass("active");
    $("#toggle-btn").toggleClass("activeBtn");
  }## Heading ##
});

$("#sidebar").click(function (e) {
  e.preventDefault();
  return false;
});