added HTML5 buffer update support.