changed jQuery to be compatible with older version