Fix nesting of <div> and <label>.
Add type attribute to <script>.