Use RequireJS for dependencies.