Use jQuery.extend to follow jQuery best practises