added reverse_word in javascript