Refactoring JS by Garbin