Scripts can be placed inside the section. This method is widely accepted method. The main reason for this is that body section contains a large volume of text contents to be displayed on the web page.
More over the head section is loaded before the body section.