On Ready

error unexpected token. Whats missing from this?
$w( “#dataset1” ).onReady( () => {
$w( “#dataset1” ).refresh()
then( () => {
console.log( “Done refreshing the dataset” );
} );

} );

} );