An experiment in sharing JavaScript between client and server