layout and javascript