 
 playRandomSong = ->
     song = nextSong
+    CURRENT_SONG = song
     window.location = "#" + song
     $("#status").text(song)
     player = getPlayerObjects()

SONGS = []
PLAYBACK_TYPES = {ogg: 'audio/ogg', mp3: 'audio/mpeg'}
PLAYBACK_TYPE = null
nextSong = null

playHashSong = ->
        songName = document.location.hash.substr(1)
        playSong songName

playSong = (song) ->

    player = getPlayerObjects()
    player.jquery.attr("controls", "controls")
    player.jquery.bind "ended", playRandomSong
    $(window).bind "hashchange", playHashSong

    $.getJSON "/files", (data) =>
        songData = []
