porting jQuery functions to WinJs ($.extend, $.ajax)