fix js2-refactor error