updates index.js using the beer-sample bucket from couchbase. implements get function