define a node.js global
Fixed what seems to be a missing Stylus import
Attempting to improve error reporting on JS errors.