delete unused function in player.js