Issue #13: less "strict" error checking in api.js + SMW example