How can I change the order of words in an element?

The timeout function can possibly be omitted, but was necessary in my case.

$(document).ready(function() {
    
setTimeout(function() {
    
var text = $('.slp_result_citystatezip').html().split(' ');
$('.slp_result_citystatezip').text(text[1] + ' ' + text[0]);
  
}, 1000);
  
});