Add typeof so it doesn't throw module not defined error
Merge pull request #9 from justinwinslow/master

Add typeof so it doesn't throw module not defined error