started refactoring
finished refactoring

All coffeescript functions live in their proper namespace now.