How to have script execute before site loads?