Add define as acceptable global in jshint grunt task
Added AMD suppot using the umd suggested pattern https://github.com/umdjs/umd