util.js for player popout
WIP