Fix click handler for playlist anchors and a looping problem (#181)