Python to JavaScript translator