Javascript Get Url Before Query String Npm Bootstrap