more stringent jshint; catch leaks/undefs
remove old shims