Attempt to write go -> js translator