changes in client javascript