Add javascript resource bundling to project.
Refactor dimmer level setting.