Updated to amd module.

I was having troubles using require node with what was there previously and my shim configuration was not helping make the script an amd module, so I replaced it with the factory amd setup.