Update anonymous_client.js

Replaced login function on client