I try to eleminate an 404 error occuring because the source (src) is missing..
var $chart = $(\"\") .addClass(\"trend-pic\") .error(func
404 is not an error. It is the way server says it does not have the source referred by the client.