add dependency error message to index.js for issue #11