Add function selectColor()
Switch from using .attr() to .prop()

See .prop() vs .attr() http://stackoverflow.com/questions/5874652/prop-vs-attr