Javascript: parsing, random colors, and keywords

A little javascript for generating random hex colors, parsing the colors before they get to the server, and support for some keywords (red, blue, etc). Tried to keep the spacing and such consistent with the other pages. Also put in an if to catch empty strings that make it to the server. I'll probably throw in some more validation on both sides next.