Don't use localhost ; document.location.host instead
Merge branch 'master' of github.com:kornifex/UTTT