can we move this into the assets/js/src/core.js