cleaned up playback.js