Fix layout and script tag + init mixture