Does seems like a general purpose function for all on-page player plugins... I'd extend it to also provide 'overlay' concept if indeed added as utility function