Prince William and Taylor Swift helped Jon Bon Jovi belt out his "Livin' on a Prayer"