A javascript implementation of the DOM, for use with WebWorkers and browsers