Updated client.js to work with user permissions.