code reorganized to allow testing
Babel extension now is imported from elsewhere
Application is testable