module definitions for node, amd
Tweaked DI to avoid node runtime errors
examples