Change bootstrap function to work with global app instead of module exporting