drop support for amd, fix jshint errors
remove self invoked function wrapper from base declaration