javascript remove everything period code example Example: js remove after character url.split('?')[0]