added package.json, modified for server side use