fix c64 palette test
refactor util.js into MY3 and UTIL