share javascripts between client and server;