translation corrections within javascript