replaced indexOf with $.inArray at the suggestion of alegscogs https://gist.github.com/alegscogs/af377cf744b8b8fee6ec#file-pick-a-color-1-0-0-js-L50
replaced unnecessary indexOf / inArray with match. thanks alegsncogs https://gist.github.com/alegscogs/af377cf744b8b8fee6ec#file-pick-a-color-1-0-0-js-L173