fix for _extend not doing exactly what $.extend did. Simply borrowed $.extend from jQuery src