Replaced $script with requireJs.