Try to use requirejs.