Follow 'scripts at the bottom' best practice