Transfer a lot of styles to js & add color method