       'artist'
     ]).read
       onSuccess: (tag) ->
-        populateName i,tag
+        populateName i,tag,file.name
         return
       onError: (error) ->
         console.log ':(', error.type, error.info

      el.value = tag.tags.title
    else if tag.tags.artist
      el.value = tag.tags.artist

  # read id3 tag data when file is chosen
  handleFileChange = (i,event) ->

      handle: '.fi-list'
      animation: 150

  # populate track name with song - artist (or filename if no id3 tags)
  populateName = (i, tag, filename) ->
    el = document.getElementById('mix_tracks_attributes_' + i + '_name')
    if tag.tags.title && tag.tags.artist
      el.value = tag.tags.title + ' - ' + tag.tags.artist
