Move loading script just before body