The identifier should always be treated as string, never as a number.
<td><input type="text" id="identifier_name_{{ loop.index }}" value="{{ id[2] }}" /></td>
<td {% if iid == id[1] %} style="font-weight: bold" {% endif %}>#<span id="identifier_{{ loop.index }}">{{ id[1] }}</span></td>
<td><input type="button" value="rename" onclick="renameIdentifier({{ loop.index }})" /></td>
- <td><input type="button" value="remove" onclick="disableIdentifier({{ id[1] }})" /></td>
+ <td><input type="button" value="remove" onclick="disableIdentifier('{{ id[1] }}')" /></td>
</tr>
{% endfor %}
<tr>