go and js code