Check on BufLeave, not just BufWrite
Updated JSHint version