refactoring javascript (hyphe commons) #www