Feel like rgbdiv.js can be reduced further

Matt Brendzel was able to help me tighten this up quite a bit on Friday, but I still think there is a lot of redundant code here. What am I missing?