What is the right way to handle it? Introduce require.js here?