Fix app to work with modern Node libraries