update index.js for testing with lab