Updates js with window.location.href.toString()

Updates ajax in js files with window.location.href.toString() in addition to https://github.com/MrJuliuss/syntara/pull/64