added AMD/CommonJS Support

removed strict mode for now because of many jshint errors.