Using defaults pattern
rewriting as a jQuery plugin