[cyb-3] JS ingest library implemented

You should use new before the constructor.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError
http://js-bits.blogspot.com/2010/08/constructors-without-using-new.html

Please also apply this change to the other three places where you throw this error.