Moved some functions from modHandler.js to utils.js. Made AmigaSample class and AmigaMod class. Moved sample read/write functions to the AmigaSample class. Moved the modLoader and saveMod functions inside the prototype for AmigaMod and renamed modLoader to loadMod. Oof, wish I had started off this way, take my advice, always start with an object, don't use seperate funcs to read/write it.