You want to append the track element as the child of a <video>, not just a <div>.