Added the client JavaScript