This error is similar to many that others have been citing, with a different spin. I get the error, "Invalid signature. Code object is not signed at all. The binary at path [.../iscroll.js] contains an invalid signature. Make sure you have signed your application with a distribution certificate..." and so on, similar to these problems:
XCode Error itms-90035 - Invalid signature?
However, I haven't seen any so far that reference problems with javascript errors, so I wanted to post this question which I'll answer below with my fix.