Implements color change function using jquery/json/ajax