What is wrong with this javascript code?

Hi Everyone,

I am trying to show a specific scenario on every pages of my app with the code below, but its not working. Does anyone know what is wrong?

$(document).on('knack-scene-render.any', function(event, scene) {
    $('#scene_2964').insertBefore($('.kn-current_user'));
})
 
Thanks for any help!