js for player card view partially finished