translate text in javascript. Fix issue #12