Use js2-string-at-point before word-at-point.