Modified to use Requirejs.

Modified to use Requirejs.