Use grandfather checking for typeof

This is part of the require usage - will deprecate
Don't add object keys as globals
skip the tests folder fixed #31
clean up