The problem is in this block of code: success: function(registrations) { }.
I would remove the call to push.wns and log to console to try to debug. Check that 'item' exists. If you're using the online node editor it will show you if you have any unmatched brackets.
I'm assuming you have configured WNS for use in the Azure portal?