Javascript Get Base Url In Javascript Object Notation W3schools