merging userData into client.js