Make constant.js work as an npm module