update package.json to allow npm install
allow open/close with index