add refactoring helpers for ruby and javascript modes