Dynamically add id for strings

So that the ids could be used in js for some cool stuff

[ticket: A little tweaking]