Update index.php

Initial support for dimming added.