Removing Khresmoi URL, making Javascript code more readable