`var parser = require('./parser')` is what I did in the first place, but it made the build fails due to atpackager not able to find `index.js`, see https://travis-ci.org/ariatemplates/hashspace/builds/19972727
To solve it, I specified `index` in the require