adjusting js for player, links, and permissions