The following code must be inside the $w.onReady(){} block.
$w("#dataset1").onReady(function () {
// $w("#dropdown1").selectedIndex = 1
// $w("#repeater1").show();
// console.log("Dataset1 On ready - dataset1 ready")
});
Currently it’s outside.
So either move it to the $w.onReady block or delete it completely.