prefer localStorage over cookies

There is no need to send remembered colors to server and even IE8 supports localStorage & JSON.