correcting a require statement and defaulting the widtests variable for node.js