Pure JavaScript version

Created pure JavaScript version of translator.