Updated index.html and removed some redundant code from playlistCtrl