control lux from js