Changed window variable to root

Changed window.contra to root.contra. Making it work if there is no module.exports and no window.

PS: Sorry about my english.