Not a function error resolved
Merge pull request #49 from Earth4/master

"Not a function" error fixed