Add jslint globals and minor bug fixes
De-AMD'd version of es5-shim.js