Fixed link between script and html

Fixed link between script and html and made var for temp in my wacky
conditional code