Javascript Regex End Of String