That whole construct is called an immediate function. The function is declared, executed and discarded all in that same statement. The (jQuery) portion of the statement is the function's argument list. It's assigned to the $ parameter of the function.
It forces the $ to equate to jQuery within the function, even if something outside of the function redefines $ to mean something else.
subject: foreColor, backColor not displayed using jquery