Added temperature threshold setting; Cleaned up JS+CSS