audioplayer.js partly implemented