Moved $scripts to the bottom