Moving script into the body