update getting started snippet
template out REST functions lib/*-function.js