How to get specific word from string in javascript.