Simple Javascript Widget without cluttering global namespace?
You should throw Error objects rather than strings:

throw new Error("Invalid width or height specified for Little Black Book");


This provides a stack trace.