[javascript] How to select last two characters of a string