Moved utility functions into utils.js, made populateTable accept the id of the user.