changes main.coffee document.location property to work properly in other browsers, document.location.origin property is missing in firefox and safar and ie10