convert tabs to spaces in client.js