issue #177 - first pass - fixed require-stub.js