What are my options on how the loginToNetflix method is called? Is there a more clean and elegant way of accomplishing this?

loginToNetflix(credentials.username, credentials.password);

'RememberMe':    true
}, true);
});

casper.then(function() {
//save the cookie for use by netflix scraper api
});

casper.run(function () {
this.echo('Done - Exiting!');
casper.exit();
});
}


var credentials = {