fix(jsvalidate): Fixing issue with jsvalidate not handling generator functions