fix print js code