Improve js performance for older IE versions.

Drop creating markup with jquery in favour of good old strings.
Merge branch 'deif-improve-javascript-performance' into deploy