abstracted the translator so java and js play nicegit status