add color.js and some test on main view