created a kale lib, moved app to app.js