adopted player.js to use media player library