Moved scripts from head to body