fork.js: improve documentation, implement Set.prototype.clear()