Weather Project, I need a little help!

I am getting really close to my finished project, however there are a few bugs I need help with.
It works great after clicking the fahrenheit button a couple times but it is not loading with everything correctly. I tried moving it out of the click function, but then it has trouble with variables because things stop working.
Any advice is appreciated!

I think I fixed it, it was a problem with nesting and variables having access to each other.
I still cannot figure out how to have it work in the thumbnail, however it works in codepen.io