Update main.js

change dimmed and xdimmed to dimm / xdimm to not get dimmed