Added translator.js and test HTML

Added a first version of the translator functions (in the translator.js
file) and a HTML document for testing purposes. Translator functions not
final yet.