Start cleaning up avrcore.js