Update index.js

crud with search and additional REST mapping