Implement luminosity and temperature js