HTML5/D3: Fix dimmable switch slider