Add onTrackSelected callback

When a track has been selected the callback will be triggered with the
currently selected tracks HTML element as this.