html5/javascript version of ddupe client/server