a clone in nodejs