Move scripts block to the head tag

Javascript files will be included in head tag instead of the bottom of the body. This change prevents field widgets to load its own jquery.