Update main.js

without this metalsmith fails silently on error.
Merge pull request #1 from unstoppablecarl/patch-1

Make the test case works