Replace $.extend with WHS.API.extend
Replace $.extend with WHS.API.extend

$.extend overwrites the values given by the user .

Former-commit-id: d73a31612c1699216dbb75eb50173349dcd15fb7
WhitestormJS/whs.js,WhitestormJS/whs.js