moved scripts into the body as obviously it wouldn't be able to append the body if it didn't exist yet