Moved script inside body to stop Visual Studio complaining.