moved wndx.js file into head of document