reset shared buffers on each handleMainDocument call

Fix grunt task using old data duplications