Update index.js

Added functions for new user data