init version and put all code to client.js