Get Element Css Selector Javascript Substring Function Of String