minor changes to ecolor.js and rename to main.js