updated js with currentPlyr function