Move weather scripts to seperate js file