remplate temply tags within attributes. Minor improvements
updated demo