NodeJS Jquery ajax trying to fill textboxes

Hey,
I just made a little script with nodeJS and I’m currently trying to navigate to a website and log into it.
I thought maybe I can do this with Jquery and ajax. So all I want to do is to navigate to a website fill the textboxes with the values of my config file and click a button.
So I looked for the IDs of the textboxes I need to fill and the buttons I need to click and I tested If I could fill them in my browser console and It worked.
now my problem is I don’t know how to get it working within my script

function ajax1() {
$.ajax({
url: ‘https://store.steampowered.com//login/?redir=app%2F365450%2FHacknet%2F&redir_ssl=1’,
type: ‘POST’,
success: function(data, status, jq_xhr) {

    $('#input_username').val(config.username)
    $('#input_password').val(config.password)
    sleep(1000)
    $('.btnv6_blue_hoverfade').click()
    sleep(5000)
    console.log(data)