Update AT24.js

Fix multiple regressions introduced by last changes. Specifically, address tracking was broken and reading didn't work if address wasn't 0.