Fixed default render function

Also added check to default a cue's "lang" attribute to the track
language if not overridden by the render function.