Php Get Url Path Javascript Substring End