Move style javascript code to css file