spotlib_js: fails on 4.01 due to warnings-as-errors

part of triage run #1304
Merge pull request #1478 from mirage/master

spotlib_js: fails on 4.01 due to warnings-as-errors