structure js to css