append $.rgbToHex and $.hexToRgb methods
fixed incorrect variable name