n colorsClosure() {
        // the code here is used to populate the color table with the hex values
        var elements = document.querySelectorAll('#colors-table [class^=text-color]'),
            i, computed, values, color, rgbValues;

        for (i = 0; i < elements.length; i++) {
            computed = window.getComputedStyle(elements[i]);
            color = computed.color;
            rgbValues = color.replace(/rgb\(|\)| /g, '').split(',');
            values = rgbToHex(rgbValues[0], rgbValues[1], 