refactoring js and coffee