Refactoring using Webstorm