Reformated client and server javascripts