Auto-run scripts on window load