Fixed issue when using $.extend to merge defaultOptions and options