Complete layout, and put JavaScript & CSS into the right place.