Use RequireJS for dependencies.
Changed RequireJS usage.