Added logic for defining a module to load via AMD.
Removed unused dependency.