refactored main.js and PalleteCreator.js, removed dependency of adding # before hex