Update main.js

without this metalsmith fails silently on error.