Make Lua object output like JS for valid identifiers