Removes some errors 

Removes error:

TypeError: object is not a function
Merge pull request #39 from abramx/patch-1

Removes some errors