updated duplexer

duplexer now is more browser compatible