Move scripts elements to end of body element to improve performance