Update namespace.js

Add object assignment and WinJS support.