Added translations and enhanced Javascript use