Javascript Get Url Without Query String To Json Object Java