Javascript Regex Everything After Last Dot, This is a slightly long winded way to do it but I think it is more readable this way.