UI: Cleaning up script tags.

They should be at the end of the body element for faster page loading.