move style to js