Move scripts to bottom (fix #2978)

Scripts at the bottom and Style sheets at top allows pages to render
quickly. This makes web application appear to more responsive.